| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | |||
| 16 | buildRequestQuery: function (targetSharePointURL, crtListName, queryType, headerOptions) { |
||
| 17 | var queryPrefix = ''; |
||
| 18 | if ((queryType === 'Fields') || (queryType === 'Items')) { |
||
| 19 | queryPrefix = '_api/web/lists/GetByTitle(\'' + crtListName + '\')/' + queryType; |
||
| 20 | } else if (queryType === 'Lists') { |
||
| 21 | queryPrefix = '_api/web/' + queryType; |
||
| 22 | } |
||
| 23 | return { |
||
| 24 | url: targetSharePointURL + queryPrefix, |
||
| 25 | headers: headerOptions, |
||
| 26 | json: true |
||
| 27 | }; |
||
| 28 | } |
||
| 29 | } |
||
| 30 |